package com.yyj.constant;

/**
 * 网络协议使用到的常量
 * 
 * @author hbm
 *
 */
public class WebConstant {
    public static final String RETURN_CODE = "rc";
    public static final String DATA = "data";
    public static final String MESSAGE = "msg";

    public static final String USER = "_USER";
    public static final String SESSION_INFO = "_SESSION_INFO";

    public static final String PRODUCES_TYPE_JSON = "application/json;charset=UTF-8";

    public static final String REQUEST_FLAG = "request-flag";
    public static final String REQUEST_ID = "requestId";
    public static final String REQUEST_TIME = "reqTime";
    public static final String REQUEST_TOME = "token";
    
    /** 请求方法 get*/
    public static final String REQUEST_METHOD_GET = "GET";
   
    /** 请求方法 post*/
    public static final String REQUEST_Method_POST = "POST";
   
    /** http请求socket连接超时时间*/
    public static final int HTTP_SOCKET_TIMEOUT = 5000;
   
    /** http请求连接超时时间*/
    public static final int HTTP_CONNECT_TIMEOUT = 5000;
    
    public static final int HTTP_CODE_200 = 200;

    public static final int HTTP_CODE_302 = 302;
    
    public static final int HTTP_CODE_404 = 404;
    
    public static final int HTTP_CODE_400 = 400;
    
    public static final int HTTP_CODE_500 = 500;
    
    public static final int HTTP_CODE_502 = 502;
    
    public static final int HTTP_CODE_504 = 504;

}
